let v = new Vue({
    el:'#app',
    data:{
        userId:'',
        title:'',
        pageInfo:{}
    },
    methods:{
        findCollectPage:function (pageNum,pageSize){
            axios({
                url:`article/findCollectPage/${pageNum}/${pageSize}`,
                method:"PUT",
                data:{
                    "userId":this.userId,
                    "title":this.title
                }
            }).then(response=>{
                if (response.data.flag){
                    this.pageInfo = response.data.data;
                }
            }).catch(error=>{
                layer.msg(error.message);
                console.log(error)
            })
        },
        toArticleDetail:function (aid){
            sessionStorage.setItem("aid",aid);
        }
    },
    created:function (){
        this.userId = sessionStorage.getItem("myId");
        this.findCollectPage(1,3);
    }
})